<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'warehouse-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'warehouseid'); ?>
		<?php echo $form->textField($model,'warehouseid',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'warehouseid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'warehousedesc'); ?>
		<?php echo $form->textField($model,'warehousedesc',array('size'=>60,'maxlength'=>75)); ?>
		<?php echo $form->error($model,'warehousedesc'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->dropDownList($model,'type',Dropdowns::getList("WH")); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->dropDownList($model,'status',$model->getStatusList()); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'empno'); ?>
		<?php echo $form->dropDownList($model,'empno',$model->getEmployeeList()); ?>
		<?php echo $form->error($model,'empno'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->